package com.umpay.privi.model.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

/** 
 * desc:角色
 * <p>创建人：Ding Zhe 创建日期：Apr 19, 2013 </p>
 * @version V1.0  
 */
public class Role implements Serializable {

	private static final long serialVersionUID = 1L;
			
	/**
	 * 角色表主键：角色编号 
	 */
	public static final String ROLEID = "roleId";
		
	//角色ID;	
	private Integer roleId;
	//角色名称;	
	private String roleName;
	//角色类型 1：管理员系统角色；2：公共系统角色 3：业务角色
	private Short roleType;
	//系统编号 1：运营平台，2：U付企业版;	
	private Short sysId;
	//2:开通；4：注销;	
	private Short state;
	//描述;	
	private String description;
	//创建者的用户ID。0表示为系统创建;	
	private String creator;
	//修改人用户编号 ;	
	private String modUser;
	//入库时间 ;	
	private Timestamp inTime;
	//修改时间;	
	private Timestamp modTime;
	//0:可用，1:删除;	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
	
	public Integer getRoleId(){
		return roleId;
	}
			
	public String getRoleName(){
		return roleName;
	}
			
	public Short getSysId(){
		return sysId;
	}
			
	public Short getState(){
		return state;
	}
			
	public String getDescription(){
		return description;
	}
			
	public String getCreator(){
		return creator;
	}
			
	public String getModUser(){
		return modUser;
	}
			
	public Timestamp getInTime(){
		return inTime;
	}
			
	public Timestamp getModTime(){
		return modTime;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setRoleId(Integer roleId){
		this.roleId = roleId;
	}
		
	public void setRoleName(String roleName){
		this.roleName = roleName;
	}
		
	public void setSysId(Short sysId){
		this.sysId = sysId;
	}
		
	public void setState(Short state){
		this.state = state;
	}
		
	public void setDescription(String description){
		this.description = description;
	}
		
	public void setCreator(String creator){
		this.creator = creator;
	}
		
	public void setModUser(String modUser){
		this.modUser = modUser;
	}
		
	public void setInTime(Timestamp inTime){
		this.inTime = inTime;
	}
		
	public void setModTime(Timestamp modTime){
		this.modTime = modTime;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}

	public Short getRoleType() {
		return roleType;
	}

	public void setRoleType(Short roleType) {
		this.roleType = roleType;
	}
}